﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StarryEdge.Core.Models
{
    public class PluginInfoModel
    {
        public string DllName { get; }
        /// <summary>
        /// 插件名称
        /// </summary>
        public string Name { get; }
        //插件唯一标识
        public long Id { get; }
        /// <summary>
        /// 插件类型  1 = 菜单  2 = 业务任务 3 = 数据源
        /// </summary>
        public int Type { get; }
        /// <summary>
        /// 版本
        /// </summary>
        public string Version { get; }
        /// <summary>
        /// 作者
        /// </summary>
        public string Author { get;}
        /// <summary>
        /// 插件描术
        /// </summary>
        public string Description { get; }
        public string DllPath { get; }
        public PluginInfoModel(string name, long id, int type, string version, string author, string description, string dll_path, string dllName)
        {
            Name = name;
            Id = id;
            Type = type;
            Version = version;
            Author = author;
            Description = description;
            DllPath = dll_path;
            DllName = dllName;
        }
    }
}
